<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:84:"F:\phpstudy_pro\WWW\www.danganguanli.com\public/../wcapps/mobile\view\index\lst.html";i:1637914368;s:79:"F:\phpstudy_pro\WWW\www.danganguanli.com\wcapps\mobile\view\public\web_top.html";i:1637912451;}*/ ?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title><?php echo $types['name']; ?> - <?php echo $configs['WEBNAME']; ?></title>	
		<link rel="stylesheet" href="/static/m/css/main.css">
<link rel="stylesheet" href="/static/m/css/swiper.min.css">
<script>    
    (function () {
        var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'; 
        var docEl = document.documentElement;
        function resizeFn() {   
            var docW = docEl.clientWidth;   
            if (docW > 750) {   
                docW = 750  
            }   
            docEl.style.fontSize = (docW * 100 / 750) + 'px';   
        }   
        resizeFn();     
        window.addEventListener(resizeEvt, resizeFn);   
    })();           
</script>
<?php 
    $backurl = request()->url(true);
 ?>
		<link rel="stylesheet" href="/static/m/layui/css/layui.css" />
	</head>
	<body>
	<?php if($types['imgpath2']): ?>
	<div class="index_flash">
		<img src="/<?php echo $types['imgpath2']; ?>" alt="<?php echo $types['name']; ?>" />
	</div>
	<?php endif; ?>
	<div class="list2" id="LAY_demo">
		
	</div>
	<a href="<?php echo url('mobile/contact/index'); ?>" class="bt" style="color: #ddd;">我要做一个一样的...</a>
	</body>
	<script src="/static/m/js/jquery-1.11.3.min.js"></script>
	<script src="/static/m/layui/layui.js"></script> 
	<script>        
        layui.use(['flow'], function () {
            var $ = layui.$
                , flow = layui.flow;            
            // 流布局
            flow.load({
                elem: '#LAY_demo'
                , done: function(page, next){
                    var lis = [];
                    var title = $("#title").val();              
                    $.ajax({
                        type: "POST",
                        contentType:"application/x-www-form-urlencoded; charset=UTF-8",
                        url: "<?php echo url('mobile/index/lst'); ?>",
                        data: {pageNum:page,pageSize:10,cid:"<?php echo $type['id']; ?>",sid:"<?php echo $types['id']; ?>",title:title},
                        error:function(msg){
                            alert("错误");
                        },
                        success:function(data){
                            var lis = [];
                            var html = '';
                            setTimeout(function(){
                                $.each(data.data,function (key,val) {                                   
                                    html += '<a href="'+val.href+'" class="item">';
										html += '<img src="/static/m/img/3.png" class="ico" />';
										html += '<div class="txt">';
											html += '<p>'+val.name+'</p>';
											html += '<i>'+val.filesize+' KB</i>';
										html += '</div>';
									html += '</a>';                                 
                                })
                                lis.push(html)
                                next(lis.join(''), page < data.totalPage);
                            }, 500);      
                        }
                    }); 
                },
            });

        });
    </script>
</html>
